<?php
namespace Pw\MainBundle\Classes;
class LinkTag extends Tag
{
	public function __construct(){
		parent::__construct('link', null, '</a>');
	}
	public function isParamAllowed($param, $value){
		if ($param === 'source') {
			return true;
		}
		return false;
	}
	public function getRepalceOpen() {
		$res = '';
		if (isset($this->params['source'])) {
			$res .= '<a href="' . $this->params['source'] . '" />';
		}
		return $res;
	}
}
